class CreateUserComments < ActiveRecord::Migration
  def self.up
    create_table :user_comments do |t|
      t.integer :res_id
      t.integer :user_id
      t.integer :user_sign
      t.string :nickname
      t.string :qq
      t.string :sid
      t.string :user_type,:null => false,:default => '0'
      t.string :comment
      t.timestamps
    end
  end

  def self.down
    drop_table :user_comments
  end
end
